const fs = require('fs-extra');
const path = require('path');
 
// 清理目标目录
const cleanDir = 'dist';
 
// 清理函数
async function clean() {
  await fs.remove(path.resolve(__dirname, cleanDir));
  console.log('Cleanup complete.');
}
 
// 执行清理操作
clean();